package com.ihisomp.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ihisomp.dto.SysPathTreeDto;
import com.ihisomp.entity.SysPagePath;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import java.util.List;

/**
 * <p>
 * 机构菜单维护 Mapper 接口
 * </p>
 *
 * @author zy
 * @since 2022-04-06
 */
public interface SysPagePathMapper extends BaseMapper<SysPagePath> {

    /**
     * 查询程序树型集合数据
     *
     * @return
     */
    List<SysPathTreeDto> getPathTree();

    /**
     * 查询程序信息列表
     *
     * @param page
     * @param req
     * @return
     */
    IPage<SysPagePath> searchPage(IPage<SysPagePath> page, @Param("req") SysPathTreeDto req);

    /**
     * 查询全部程序数据
     * @return
     */
    List<SysPathTreeDto> getPagePathList();
}
